﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using University.Workshop.Model;
using University.Workshop.DataAccess;

namespace University.Workshop.Business
{
    public static class ReportProduct
    {

        public static DataTable SearchReport(DateTime dateInit,DateTime dateEnd,string client, string product) {
            if (dateInit > dateEnd)
            {
                throw new BusinessException("El parametro fecha ingresado es invalido");
            }
            return ReportSalesProduct.GetReport(dateInit, dateEnd, client, product);

        } 
    }
}
